# -*- coding: utf-8 -*-
"""
Created on Fri Dec 21 16:05:23 2018

@author: geyang
@email: 302756880@qq.com

tree node module
Tree node module is a collection of some node class of binary tree

"""
"""
BTNode
Sample node used for linked binary tree
"""
class BTNode:
    
    def __init__(self, data, left = None, right = None):
        self.data = data
        self.left = left
        self.right = right
        
node = BTNode(2)
print(node.data)

"""
HTNode
huffman tree node 
"""
class HTNode(BTNode):
    def __lt__(self, other_node):
        return self.data < other_node.data
    